home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / ksieve / parser.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  2.1 KB  |  73 lines

  1. /*  -*- c++ -*-
  2.     ksieve/parser.h
  3.  
  4.     This file is part of KSieve,
  5.     the KDE internet mail/usenet news message filtering library.
  6.     Copyright (c) 2002-2003 Marc Mutz <mutz@kde.org>
  7.  
  8.     KSieve is free software; you can redistribute it and/or modify it
  9.     under the terms of the GNU General Public License, version 2, as
  10.     published by the Free Software Foundation.
  11.  
  12.     KSieve is distributed in the hope that it will be useful, but
  13.     WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.     General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  20.  
  21.     In addition, as a special exception, the copyright holders give
  22.     permission to link the code of this program with any edition of
  23.     the Qt library by Trolltech AS, Norway (or with modified versions
  24.     of Qt that use the same license as Qt), and distribute linked
  25.     combinations including the two.  You must obey the GNU General
  26.     Public License in all respects for all of the code used other than
  27.     Qt.  If you modify this file, you may extend this exception to
  28.     your version of the file, but you are not obligated to do so.  If
  29.     you do not wish to do so, delete this exception statement from
  30.     your version.
  31. */
  32.  
  33. #ifndef __KSIEVE_PARSING_H__
  34. #define __KSIEVE_PARSING_H__
  35.  
  36. #include <kdepimmacros.h>
  37.  
  38. class QString;
  39.  
  40. namespace KSieve {
  41.  
  42.   class ScriptBuilder;
  43.   class Error;
  44.  
  45.   /** @short Parser for the Sieve grammar.
  46.       @author Marc Mutz <mutz@kde.org>
  47.   **/
  48.   class KDE_EXPORT Parser {
  49.   public:
  50.  
  51.     Parser( const char * scursor, const char * const send, int options=0 );
  52.     ~Parser();
  53.  
  54.     void setScriptBuilder( ScriptBuilder * builder );
  55.     ScriptBuilder * scriptBuilder() const;
  56.  
  57.     bool parse();
  58.  
  59.     const Error & error() const;
  60.  
  61.     class Impl;
  62.   private:
  63.     Impl * i;
  64.  
  65.   private:
  66.     const Parser & operator=( const Parser & );
  67.     Parser( const Parser & );
  68.   };
  69.  
  70. } // namespace KSieve
  71.  
  72. #endif // __KSIEVE_PARSING_H__
  73.